package com.coustemview.qianfeng.huaqiangbeistore.model;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by mingma on 2016/9/1.
 */
public class Oversear_evaluate_Bean {
    public static List<Oversear_specialevaluate_handler> getdata(String result){
        List<Oversear_specialevaluate_handler>data=new ArrayList<>();
        try {
            JSONObject object=new JSONObject(result);
            JSONObject data1 = object.getJSONObject("data");
            JSONArray tcRates = data1.getJSONArray("tcRates");
            for (int i = 0; i <tcRates.length() ; i++) {
               Oversear_specialevaluate_handler handler=new Oversear_specialevaluate_handler();
                JSONObject jsonObject = tcRates.getJSONObject(i);
                  handler.nickName=jsonObject.getString("nickName");
                  handler.content=jsonObject.getString("content");
                  handler.createdStr=jsonObject.getString("createdStr");
                data.add(handler);
            }
            return data;
        } catch (JSONException e) {
            e.printStackTrace();
        }
        return null;
    }
}
